package core.ui.demo;

import javafx.MyDemo.FirstPreloader;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class Demo1 extends Application
{
	public static void main(String[] args)
	{
		FirstPreloader.launch(Demo1.class);
	}
	public void start(Stage primaryStage) throws Exception
	{
		VBox root = new VBox();
		root.setPadding(new Insets(10));//设置边距
		
		root.getChildren().add(DemoGridPane.getGridPane());//添加网格
		root.getChildren().add(DemoTabPane.getTabPane());//添加选项卡
		
		primaryStage.setScene(new Scene(root,700,600));//设置舞台
		primaryStage.setTitle("JavaFX - UI使用");
		primaryStage.setResizable(false);
		
		primaryStage.show();//显示
	}
}
